import request from '../utils/request';
import { remoteAddress } from './ip';

export async function addClass(params) {
  return request(remoteAddress('/basic/class/add'), {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function deleteClass(params) {
  return request(remoteAddress('/basic/class/delete'), {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function updateClass(params) {
  return request(remoteAddress('/basic/class/update'), {
    method: 'POST',
    body: {
      ...params,
    },
  });
}

export async function queryClass(params) {
  return request(remoteAddress('/basic/class/listall'), {
    method: 'POST',
    body: {
      ...params,
    },
  });
}
